package com.hxzy.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hxzy.common.core.domain.entity.SysRole;
import com.hxzy.system.domain.SysOperLog;
import com.hxzy.system.domain.dto.SysOperLogSearchDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 增删改操作日志
 */
@Mapper
public interface SysOperLogMapper extends BaseMapper<SysOperLog> {

    int insertOperlog(SysOperLog sysOperLog);

    void cleanOperLog();

    IPage<SysOperLog> search(IPage<SysRole> page, @Param(value = "dto") SysOperLogSearchDTO sysOperLogSearchDTO);

    List<SysOperLog> searchExport(@Param(value = "dto")SysOperLogSearchDTO sysOperLogSearchDTO);
}
